import fn from "./tool.function";
const startDraw = (data: any) => {
    console.log(data);
    let type = data.type;
    switch (type) {
        case "graphicText":
            /**
             * 图上文字
             */
            fn.graphicText.label(data.value);
            break;

        case "punctuation":
            /**
             * 图上标点
             */
            fn.punctuation.point();
            break;

        case "segment":
            /**
             * 图上线段
             */
            fn.segment[data.value]();
            break;

        case "twodimension":
            /**
             * 二维平面
             */
            fn.twodimension[data.value]();
            break;

        case "threedimensional":
            /**
             * 三维立体
             */
            fn.threedimensional[data.value]();
            break;

        default:
            alert("暂无此类型数据");
    }
};
export default startDraw;
